import request from '@/utils/request'

// 查询题库单选题列表
export function listAbuwxQuestionChoice(query) {
  return request({
    url: '/abuwx/AbuwxQuestionChoice/list',
    method: 'get',
    params: query
  })
}

// 查询题库单选题详细
export function getAbuwxQuestionChoice(id) {
  return request({
    url: '/abuwx/AbuwxQuestionChoice/info/' + id,  
    method: 'get'
  })
}

// 新增题库单选题
export function addAbuwxQuestionChoice(data) {
  return request({
    url: '/abuwx/AbuwxQuestionChoice',
    method: 'post',
    data: data
  })
}

// 修改题库单选题
export function updateAbuwxQuestionChoice(data) {
  return request({
    url: '/abuwx/AbuwxQuestionChoice',
    method: 'put',
    data: data
  })
}

// 删除题库单选题
export function delAbuwxQuestionChoice(id) {
  return request({
    url: '/abuwx/AbuwxQuestionChoice/' + id,
    method: 'delete'
  })
}

export function options(query) {
  return request({
    url: '/abuwx/AbuwxQuestionChoice/dome',
    method: 'get',
    params: query
  })
}